package com.liu.qqRobot.wia.job;

import com.liu.qqRobot.wia.service.ListenInInvasionsService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ListenInInvasionsJob {

    @Resource
    private ListenInInvasionsService listenInInvasionsService;

    // 实际执行时间为cron时间+8
//    @Scheduled(cron = "0 0/30 * * * ?")
    public void listenIn() {
        log.info("开始监听入侵任务是否有高价值物品");
        listenInInvasionsService.listenIn();
        log.info("结束监听入侵任务是否有高价值物品");
    }
}
